package com.lovo.doudizhuPlus;

import java.util.Comparator;

public class MyComparetor implements Comparator<com.lovo.doudizhuPlus.Card> {


    @Override
    public int compare(Card o1, Card o2) {
        if (o1.getNum() == o2.getNum()) {
            return o1.getNum() - o2.getNum();
        } else {
            return o2.getNum() - o1.getNum();
        }
    }
}
